#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
int main()
{
	int a = 0;
	cin >> a;
	int& b = a;
	int& c = b;
	int& d = c;
	d++;
	cout << a <<" "<< b<<" " << c<<" " << d << endl;
	return 0;
}